#include "GameOfLife.h"
#include <unistd.h>

int main()
{
	Game g(ROW, COL, 50);
	std::cout << "Please Input Row,Col,percent: __ __ __\b\b\b\b\b\b\b\b";
	std::cin >> g;
	while (1)
	{
		std::cout << g << std::endl;
		usleep(150000);
		printf("\e[1;1H\e[2J");
        g.Evolution();
	}

	return 0;
}
